package com.swt.gap.model.entity;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel
public class File {
    private Integer fileId;

    private String originalFileName;

    @ApiModelProperty(value = "数据类型：1表单，2文档，3多媒体")
    private Integer fileType;

    private String savePath;

    private String savedFileName;

    private Double fileSize;

    private Integer fileFromType;

    private Integer fileClassId;

    private JSONObject textElement;

    @JsonFormat(pattern= "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createdTime;

    private Integer createdBy;

    private Boolean isDeleted;

    private String password;

}